from django.urls import path, include
from temperature_analysis import views
from rest_framework.routers import DefaultRouter

router = DefaultRouter()
# router.register(prefix="get_fine_as_data", viewset=views.Fine_as_ViewSet)
# router.register(prefix="get_OutputLoopa_data", viewset=views.OutputLoopa_ViewSet)
# router.register(prefix="get_as_cycle_data", viewset=views.AsCycle_ViewSet)

urlpatterns = [
    path("get_temperature_data/", views.temperature_Sj1.as_view(), name="温度数据"),
    # path("get_fine_as_data/", views.my_Fine_as.as_view(), name="每日生产信息"),
    # path("get_as_cycle_data/", views.my_AsCycle.as_view(), name="装配节拍标准"),
    # path("get_LastCtStatistics_page/", views.LastCtStatisticsView.as_view()),
]
# 使用视图集编程 Viewset（写法三）
urlpatterns += router.urls
